
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildBuildingCfg : public ManualSingleton <GuildBuildingCfg>
{
	friend ManualSingleton <GuildBuildingCfg>;
public:
	GuildBuildingCfg();
	~GuildBuildingCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildBuildingCfgInfo *GetGuildBuildingCfgInfo(int32_t buildingId);
	const GuildBuildingCfgMap *GetGuildBuildingCfgMap() { return &m_GuildBuildingCfgMap; }
private:
	GuildBuildingCfgMap m_GuildBuildingCfgMap;
};

#define  g_MakeGuildBuildingCfgTable() (GuildBuildingCfg::Instance())
#define  g_GetGuildBuildingCfgTable() (GuildBuildingCfg::GetInstance())
#define  g_DelGuildBuildingCfgTable() (GuildBuildingCfg::Destroy())